﻿using ConsoleApp1;
using System;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            //Tiger t = new Tiger("老虎");
            //t.Print();
            //t.zoulu();
            //t.chifan();
            //t.shuijiao();
            //t.jiao();
            //t.Cry();

            //Console.WriteLine("--------------------------");

            //Cat c = new Cat("猫");
            //c.Print();
            //c.zoulu();
            //c.chifan();
            //c.shuijiao();
            //c.jiao();
            //c.Cry();
            //Console.WriteLine("--------------------------");

            //Yanzi y = new Yanzi("燕子");
            //y.Print();
            //y.zoulu();
            //y.chifan();
            //y.shuijiao();
            //y.jiao();
            //y.Cry();

            //Console.WriteLine("--------------------------");

            //Laoying l = new Laoying("老鹰");
            //l.Print();
            //l.zoulu();
            //l.chifan();
            //l.shuijiao();
            //l.jiao();
            //l.Cry();
            //Console.WriteLine("--------------------------");

            Console.WriteLine("欢迎来到软工宠物店！ 1、猫；2、老虎；3、燕子；4、老鹰");
            int key = int.Parse(Console.ReadLine());
            Anima a;
            switch (key)
            {
                case 1:
                    a = new Cat();
                    break;
                case 2:
                    a = new Tiger();
                    break;
                case 3:
                    a = new Yanzi();
                    break;
                case 4:
                    a = new Laoying();
                    break;
                default:
                    Console.WriteLine("不要乱输！！");
                    a = new Laoying();
                    break;
            }
            ChongWuDian c = new ChongWuDian();
            c.ConsignAnimal(a);
        }

     

    }
}
